.home-container {
  padding: 24px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.home-header {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-container {
  margin-top: 24px;
}

/* 贡献日历样式 */
.contribution-calendar {
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  margin: 0 auto 32px;
  border: 1px solid #e8e8e8;
  width: fit-content;
  max-width: 100%;
}

.contribution-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.calendar-title {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 200px;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.calendar-legend {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.legend-squares {
  display: flex;
  gap: 3px;
}

.legend-square {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}



.calendar-layout {
  display: flex;
  flex-direction: column;
}

.calendar-weekdays {
  display: flex;
  margin-bottom: 4px;
}

.weekday-spacer {
  width: 26px;
}

.weekday-label {
  font-size: 11px;
  color: #666;
}

.calendar-content {
  display: flex;
  flex-direction: column;
  position: relative;
}

.month-labels-row {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  padding-left: 26px;
  height: 16px;
  position: relative;
}

.month-label-spacer {
  width: 0;
}

.month-labels-container {
  position: relative;
  flex: 1;
  height: 16px;
}

.month-label {
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  position: absolute;
}

.calendar-grid-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.calendar-row {
  display: flex;
  gap: 3px;
  align-items: center;
}

.weekday-label-inline {
  width: 26px;
  font-size: 11px;
  color: #666;
  text-align: right;
  padding-right: 4px;
  flex-shrink: 0;
}

.calendar-day {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  transition: all 0.2s;
  flex-shrink: 0;
}



/* 响应式设计 */
@media (max-width: 768px) {
  .contribution-calendar {
    padding: 16px;
  }
  
  .contribution-calendar-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .calendar-day {
    width: 10px;
    height: 10px;
  }
  
  .legend-square {
    width: 8px;
    height: 8px;
  }
}


.timeline-date-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.experiments-list {
  margin-left: 0;
}

.experiment-card {
  transition: all 0.3s;
  border: 1px solid #e8e8e8;
}

.experiment-card:hover {
  border-color: #1890ff;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
  transform: translateX(4px);
}

.experiment-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.experiment-card-title {
  display: flex;
  align-items: center;
  flex: 1;
}

.experiment-time {
  font-size: 14px;
  white-space: nowrap;
  margin-left: 12px;
}

.experiment-card-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .home-container {
    padding: 16px;
  }

  .home-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .experiment-card-header {
    flex-direction: column;
    gap: 8px;
  }

  .experiment-time {
    margin-left: 0;
  }
}

